package cn.bgs.serviceedu.dao;

import cn.bgs.serviceedu.entity.Orders;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author YiChen
 * @since 2021-10-20
 */
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> findAllList(@Param(Constants.WRAPPER)Wrapper<Orders> wrapper);

    Orders findByIdOrders(String ordersId);

    List<Orders> findByIdCustOrders(Integer customerId);
}
